package wsz.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import wsz.pojo.Account;
import wsz.service.AccountService;

import java.util.List;

/**
 * @author wsz
 * @date 2021/10/27 10:09
 **/
@Controller
@RequestMapping(value = "account")
public class AccountController {

    @Autowired
    private AccountService accountService;

    @ResponseBody
    @RequestMapping(value = "all")
    public List<Account> getAll() {
        return accountService.getAll();
    }
}
